<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2024-03-01
  Time: 11:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            background-color: #E9E9E9;
        }
        .zhuti{
            width: 1000px;
            height: 700px;
            background-color: #ffffff;
        }
        .smjv{
            width: auto;
            height: auto;
            margin-top: 90px;
        }
        .zhutifuji{
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .butongkaoshi{
            width: 90%;
            height: 50px;
            display: flex;
            margin-top: 15px;
            margin-left: 60px;
            border-bottom: 1px #e6e6e6 solid;
            justify-content: space-between;
        }
        .kuangao{
            width: auto;
            height: auto;
            color: #656565;
        }
        .kaikao{
            cursor: pointer;
            width: 130px;
            height: 40px;
            color: #ffffff;
            text-align: center;
            line-height: 40px;
            background-color: #B4D40D;
        }
    </style>
</head>
<body>
<%@ include file="ProjectPage/Tobu.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="zhutifuji">
    <div class="zhuti">
        <div class="smjv">
            <c:forEach items="${examVos}" var="timxx" varStatus="vs">
                <div class="butongkaoshi">
                    <div class="kuangao">
                        <div>${timxx.pagername}</div>
                        <div>(考试时间：${timxx.starttime}-${timxx.terminaltime})</div>
                    </div>
                    <div class="kuangao">
                        <div class="kaikao" onclick="jumpToAnotherPage(${timxx.pagerId},${timxx.id})">开始考试</div>
                    </div>
                </div>
            </c:forEach>
        </div>
    </div>
</div>
<script>
    function jumpToAnotherPage(pagerId,examId){
        //这里的URL替换为你想跳转的页面路径
        window.location.href = "TonyiCeshiServlet?pagerId="+pagerId+"&examId="+examId;
    }
</script>

<%@ include file="ProjectPage/Dibu.jsp" %>
</body>
</html>
